import { useSelector } from "react-redux";
function useRouter() {
    var path = useSelector(function(state) {
        return state.app.path;
    });
    var pathname;
    var query;
    var search;
    if (typeof path === "string") {
        pathname = path;
    } else if (typeof path === "object") {
        pathname = path.path, query = path.query, search = path.search;
    } else {
        pathname = "";
    }
    return {
        location: {
            pathname: pathname,
            query: query,
            search: search
        },
        query: query
    };
}
export default useRouter;

 //# sourceMappingURL=useRouter.js.map